package org.jetnuke.dao.sqlserver;

import net.jforum.dao.sqlserver.SqlServerDataAccessDriver;

import org.jetnuke.dao.BannerDAO;
import org.jetnuke.dao.BlogPostDAO;
import org.jetnuke.dao.DownloadDownloadDAO;
import org.jetnuke.dao.LinkLinkDAO;
import org.jetnuke.dao.PagesDAO;
import org.jetnuke.dao.PictureCommentDAO;
import org.jetnuke.dao.PictureDAO;
import org.jetnuke.dao.PictureUserSettingsDAO;
import org.jetnuke.dao.RefererDAO;
import org.jetnuke.dao.ReviewsDAO;
import org.jetnuke.dao.StoriesCatDAO;
import org.jetnuke.dao.StoriesDAO;

public class DataAccessDriver extends org.jetnuke.dao.generic.DataAccessDriver {

	private static RefererDAO refererModel = new SqlServerRefererDAO();
	private static StoriesDAO storiesModel = new SqlServerStoriesDAO();
	private static DownloadDownloadDAO downModel = new SqlServerDownloadDownloadDAO();
	private static LinkLinkDAO linkModel = new SqlServerLinkLinkDAO();
	private static ReviewsDAO reviewsModel = new SqlServerReviewsDAO();
	private static StoriesCatDAO storiesCatModel = new SqlServerStoriesCatDAO();
	private static PagesDAO pagesModel = new SqlServerPagesDAO();

	private static BannerDAO bannerModel = new SqlServerBannerDAO();
	private static BlogPostDAO blogPostModel = new SqlServerBlogPostDAO();
	private static PictureDAO pictureModel = new SqlServerPictureDAO();
	private static PictureUserSettingsDAO pictureUserSettingsModel = new SqlServerPictureUserSettingsDAO();
	private static PictureCommentDAO pictureCommentModel = new SqlServerPictureCommentDAO();
	static {
		delegate = new SqlServerDataAccessDriver();
	};

	public StoriesDAO newStoriesDAO() {
		return storiesModel;
	}

	public RefererDAO newRefererDAO() {
		return refererModel;
	}

	public LinkLinkDAO newLinkLinkDAO() {
		return linkModel;
	}

	public DownloadDownloadDAO newDownloadDownloadDAO() {
		return downModel;
	}

	public ReviewsDAO newReviewsDAO() {

		return reviewsModel;
	}

	public StoriesCatDAO newStoriesCatDAO() {

		return storiesCatModel;
	}

	public PagesDAO newPagesDAO() {
		return pagesModel;
	}

	public BannerDAO newJBannerDAO() {

		return bannerModel;
	}

	public BlogPostDAO newBlogPostDAO() {
		return blogPostModel;
	}

	public PictureDAO newPictureDAO() {
		return pictureModel;
	}

	public PictureUserSettingsDAO newPictureUserSettingsDAO() {
		return pictureUserSettingsModel;
	}

	public PictureCommentDAO newPictureCommentDAO() {
		return pictureCommentModel;
	}
}
